package com.neusoft.neu24.nep.bootaop.demos.entity;

import lombok.Data;

@Data
public class CommonResult<T> {
    private Integer code;
    private String msg;
    private  T result;

    public CommonResult(Integer code, String msg, T result)
    {
        this.code = code;
        this.msg = msg;
        this.result = result;
    }

    public CommonResult( T result)
    {
        this.code = 200;
        this.msg = "OK";
        this.result = result;
    }

}
